package ui;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

import components.PlayerCompiler;
import components.SecurityParser;


public class Test {

    /**
     * @param args
     * @throws Exception
     */
    public static void main(String[] args) throws Exception {
        SecurityParser p = new SecurityParser();

        FileReader fileReader = new FileReader(new File("TestPlayer.java"));
        String tp = "";

        BufferedReader br = new BufferedReader(fileReader);
        String s;
        while ((s = br.readLine()) != null) {
            tp += s + "\n";
        }
        fileReader.close();
        
        

        System.out.println(p.checkCode(tp));

        PlayerCompiler playerCompiler = new PlayerCompiler();
        System.out.println(playerCompiler.Compile(tp, "X:/test"));

    }

}
